package application.pictureView
{
	import com.imcrl.component.pictab.PictabItem;
	
	import starlingui.component.drag.AbsIcon;
	
	public class PictureItem extends PictabItem
	{
		private var loader:AbsIcon;
		public function PictureItem()
		{
			super();
		
			loader=new AbsIcon(null);	
			this.addChild(loader);
		}
		
		override public function resize(w:int, h:int):void{
			super.resize(w,h);
			
			loader.x=w>>1;
			loader.y=h>>1;
		}
		
		override public function awaken():void{
			trace(_data);
			loader.load(_data);
		}
		
		
		override public function set data(value:*):void{
			super.data=value;
		}
	}
}